<%@ page contentType="text/html; charset=utf-8" language="java" import="com.lxsoft.action.admin.templetCore" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<html>
  <head>
   <s:head theme="ajax"/>
   <script type="text/javascript" src="jQuery/jquery-latest.js"></script>
   <script type="text/javascript">
   
   window.location.href='setup/index.jsp';
   </script>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body,td,th {
	font-size: 12px;
	color: #333333;
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #006600;
	font-size: 14;
	font-weight: bold;
}
.STYLE3 {
	font-size: 14;
	font-weight: bold;
}
-->
  </style></head>
  <body>

<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="center" width="750" height="453">
    <div style="position:absolute;word-break：break-all;float:left; width:650px; margin-top:35px; height:300px; margin-left:45px; text-align:left; " >
      <span class="STYLE1">系统配置信息温馨提示</span><span class="STYLE3">：</span><br>
    <%
	try{
	try{
	out.println("<br>");
	out.println("您的基本配置信息如下：<br>"+templetCore.getUserConfig());
	}catch(Exception e)
	{
	}
	
	if(templetCore.getConn()!=null)
		{
			out.println("您的配置正确，数据库连接正常，请进入网站");
		}else
		{
			out.println("<font color=#006600>您的数据库配置不正确，数据库连接出现异常，请检查数据库配置文件在 WEB-INF/classes/hibernate.cfg.xml文件中修改数据库的名称用户名和密码，修改完毕后请重新启动服务器，检查数据库连接。</font>");
		}
	 }catch(Exception e)
	 {
	 	out.println("<font color=#ff0000>您的数据库配置不正确，数据库连接出现异常，请检查数据库配置文件在 WEB-INF/classes/hibernate.cfg.xml文件中修改数据库的名称用户名和密码，修改完毕后请重新启动服务器，检查数据库连接。<br>错误提示："+e.toString()+"</font>");
	 }
	
	%>
    </div>
    
    <img src="setup/ShowUserTishi.jpg" width="750" height="453" border="0" usemap="#Map"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>



<map name="Map"><area shape="rect" coords="576,352,737,392" href="front/index.html">
<area shape="rect" coords="574,396,736,433" href="admin/admin_login.html" target="_blank">
</map></body>
</html>
